﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebUI.Models;

namespace WebUI.Reposiories
{
    interface IPersonRepository
    {
        IList<Person> GetAll();
    }


    [Export(typeof(IPersonRepository))]
    public class PersonRepository : IPersonRepository
    {
        public IList<Person> GetAll()
        {
            List<Person> listOfBooks = new List<Person>(3);
            listOfBooks.AddRange(new Person[] 
               {
                   new Person(){FirstName="Alex" , LastName="Morphi"}
               });
            return listOfBooks;
        }
    }
}
